package com.meshnetics.gb.util.formatters;

/**
 * Frequent used byte formatters.
 *
 * @author Yury Aserchev (yaserchev@meshnetics.com)
 *         Date: 27.08.2007 12:41:30
 */
public final class ByteFormatters{
    /** Formats byte as two hex digits. For example 01, ED, 1F. */
    public static final ByteFormatter HEX = new ByteFormatterHex();
    /** Formats byte as two hex digits with prefix. For example 0x01, 0xED, 0x1F. */
    public static final ByteFormatter HEX_PREFIXED = new ByteFormatterHex(true);
    /** Formats byte as unsigned byte into decimal number. For example 1, 19, 255. */
    public static final ByteFormatter DEC_UBYTE = new ByteFormatterUByte();
    /** Formats byte as signed byte into decimal number. For example 1, 19, -1, -128, 127. */
    public static final ByteFormatter DEC_BYTE = new ByteFormatterDecByte();
    /** Formats byte as unsigned byte into decimal number plus prefixed hex number in
     * brackets. For example 0 (0x00), 1 (0x01), 127 (0x7F), 128 (0x80), 255 (0xFF). */
    public static final ByteFormatter DEC_UBYTE_AND_HEX = new ByteFormatterHexAndUByte();

    private ByteFormatters(){}
}
